package com.gcit.seniorWish.web.modular.report.warpper;

import com.gcit.seniorWish.web.common.constant.factory.ConstantFactory;
import com.gcit.seniorWish.core.base.warpper.BaseControllerWarpper;

import java.util.List;
import java.util.Map;

/**
 * 查看上报列表的包装类
 *
 * @author fengshuonan
 * @date 2017年2月19日10:59:02
 */
public class StatisticsReportWarpper extends BaseControllerWarpper {

	public StatisticsReportWarpper(List<Map<String, Object>> list) {
		super(list);
	}

	@Override
	public void warpTheMap(Map<String, Object> map) {
		map.put("schoolCode", ConstantFactory.me().getSeniorSchoolById((String) map.get("seniorSchoolId")).getSchoolCode());
		map.put("schoolName", ConstantFactory.me().getSeniorSchoolById((String) map.get("seniorSchoolId")).getSchoolName());
		map.put("className", ConstantFactory.me().getSeniorSchoolClassById((String) map.get("seniorClassId")).getSenoirClassName());
		map.put("statusName",
				ConstantFactory.me().getDictByCodeAndValue("report_status", map.get("status") + "").getName());
	}
}
